package com.whj.serviceprice.service;

import com.whj.internalcommon.dto.PriceRules;
import com.whj.internalcommon.dto.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author whj
 * @since 2023-01-29
 */
public interface IPriceRulesService{

    ResponseResult add(PriceRules priceRules);

    ResponseResult edit(PriceRules priceRules);

    ResponseResult<PriceRules> getNewestVersion(String fareType);

    ResponseResult<Boolean> getVersionIsNew(String fareType, Integer fareVersion);

    ResponseResult<Boolean> ifExists(PriceRules priceRules);

}
